package com.hl.toolkit.server.tycoin.account.slaveservice;//package com.tycoin.account.slaveservice;
//
//import java.util.List;
//import java.util.Map;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.data.domain.PageRequest;
//import org.springframework.data.domain.Pageable;
//import org.springframework.data.domain.Sort;
//import org.springframework.data.domain.Sort.Direction;
//import org.springframework.stereotype.Service;
//import org.springframework.transaction.annotation.Transactional;
//
//import com.tycoin.account.slaveentity.TycoinAccountCash;
//import com.tycoin.account.slaveentity.TycoinAccountLog;
//import com.tycoin.account.slaveentity.TycoinAccountLogView;
//import com.tycoin.account.slaveentity.TycoinAccountRecharge;
//import com.tycoin.account.slaverepository.TycoinAccountCashRepository;
//import com.tycoin.account.slaverepository.TycoinAccountLogRepository;
//import com.tycoin.account.slaverepository.TycoinAccountLogViewRepository;
//import com.tycoin.common.bean.PageInfo;
//import com.tycoin.common.entity.Page;
//import com.tycoin.common.repository.AbstractRepository;
//import com.tycoin.common.service.AbstractService;
//
//@Service
//@Transactional(value = "slaveTransactionManager", readOnly = true)
//public class TycoinAccountLogViewService extends AbstractService<TycoinAccountLogView, Long> {
//
//
//	@Autowired
//	private TycoinAccountLogViewRepository tycoinAccountLogViewRepository;
//	
//	
//	@Override
//	public AbstractRepository<TycoinAccountLogView, Long> getRepository() {
// 		return tycoinAccountLogViewRepository;
//	}
//	public List<TycoinAccountLogView> getAccountLogViewByPage(Integer page, String userId) {
//		if(page==null){
//			page=0;
//		}
//		Sort sort = new Sort(Direction.DESC, "addtime");
//		Pageable pageable = new PageRequest(page, 10, sort);
//		org.springframework.data.domain.Page<TycoinAccountLogView> pageList = tycoinAccountLogViewRepository.getAccountLogViewByPage(userId, pageable);
//		return pageList.getContent();
//
//	}
//	
//	public TycoinAccountLogView findById(Long id){
//		return tycoinAccountLogViewRepository.findOne(id);
//	}
//
//}
